// 287589764&A5A2AEB0140NDC6080871A4A3BE4930DA251E449D1E7DC88141FFC8A8E2633187D7457A88ABC148ME410B8002DF07EC_
import axios, { type AxiosResponse, type AxiosRequestConfig, type AxiosRequestHeaders } from 'axios';

// 配置新建一个 axios 实例
const service = axios.create({
  baseURL: '/app-dev',
  timeout: 50000,
});

// 添加请求拦截器
service.interceptors.request.use(
  (config) => {
    return config;
  }
);

// 添加响应拦截器
service.interceptors.response.use(
    async (response) => {
        const res = response.data;
        return res.data;
    } ,
    (error) => {
        console.log(error)
    }
);

export default service;
